<%@ page contentType="text/html; charset=utf-8"%>

<%@ include file="/WEB-INF/jsp/includeTop.jsp"%>

<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="rowHead">
		<td height="20" width="45%" nowrap align="center" class="globalTextBold">沟通标题</td>
		<td height="20" width="10%" nowrap align="center" class="globalTextBold">沟通对象姓名</td>
		<td height="20" width="15%" nowrap align="center" class="globalTextBold">沟通对象电话</td>
		<td height="20" width="10%" nowrap align="center" class="globalTextBold">沟通对象职位</td>
		<td height="20" width="10%" nowrap align="center" class="globalTextBold">沟通日期</td>
		<td height="20" width="10%" nowrap align="center" class="globalTextBold">操作</td>
	</tr>
	<c:forEach var="comm" items="${page.data}" varStatus="status">
		<tr class="rowClass">
			<td height="20" class="globalText"><a id="commTitle" href="<c:url value='/plan/communicationDetail/${comm.id}.html' />" rel="<c:url value='/plan/communicationDetail/${comm.id}.html' />" title="沟通内容详细">${comm.title}</a></td>
			<td height="20" class="globalText">${comm.contactName}</td>
			<td height="20" class="globalText">${comm.contactPhoneOrOther}</td>
			<td height="20" class="globalText">${comm.contactPosition}</td>
			<td height="20" class="globalText"><fmt:formatDate value="${comm.recordDate}" pattern="yyyy/MM/dd"/></td>
			<td height="20" class="globalText">
				<input type="button" class="btnStyle" value="删除" onclick="javascript:delComm('${comm.id}')">
			</td>
		</tr>
	</c:forEach>
</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

<script type="text/javascript">
	$(document).ready(function() {
		$("#commTitle").cluetip({arrows:true});
	});
	
	function delComm(commId){
		if(confirm('确定删除?')){
			window.location="<c:url value='/plan/removeCommunication/"+commId+".html'/>";
		}
	}
</script>